
public class TrainTicket implements ITicket {

    private String from;
    private String to;

    public TrainTicket(String from, String to) {
        this.from = from;
        this.to = to;
    }

    public void info() {
        System.out.println(from + "->" + to + ":硬座100元, 硬卧：200元");
    }
}